package com.woniu01;

public class Test {
    public static void main(String[] args) {
       Product A = new Product(01,"洗衣机",500);
       Product B = new Product(02,"冰箱",400);
       Product C = new Product(03,"空调",300);
       ShoppingCart cart = new ShoppingCart();
       cart.addProduct(A);
       cart.addProduct(B);
       cart.addProduct(C);
       cart.getTotalPrice();

       cart.removeProduct(C);
       cart.getTotalPrice();
    }
}
